package com.casstime.ec.cloud.discount.services;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.casstime.ec.cloud.discount.dao.business.SupplierGarageBusinessMapper;
import com.casstime.ec.cloud.values.business.SupplierGarageBusiness;

/**
 * ClassName: DiscountServiceImpl 
 * Function: (维修厂于供应商交易记录表)
 * Reason: ADD REASON(可选).
 *  
 * @author wu.chen 
 * 2018年2月26日 上午11:02:13
 * @version   
 * @since JDK 1.8
 */
@Service
public class BusinessDAOService {
	
	@Autowired
	private SupplierGarageBusinessMapper supplierGarageBusinessMapper;

	public int insertSupplierGarageBusiness(List<SupplierGarageBusiness> records) {
		return supplierGarageBusinessMapper.insertSupplierGarageBusiness(records);
	}
	
	public List<SupplierGarageBusiness> listSupplierGarageBusiness(String garageCompanyId) {
		return supplierGarageBusinessMapper.listSupplierGarageBusiness(garageCompanyId);
	}
}
